package com.capybara.alarm.controller;

import com.capybara.account.result.Result;
import com.capybara.account.result.ResultSet;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;


/**
 * 用户
 *
 * @author wgc
 * @date 2024-09-12
 */
@Validated
@RestController
@RequestMapping("/test")
public class AuUserControllereeee {

    @GetMapping
    public String test(@RequestParam @NotBlank String name) {
        return "test";
    }

    @PostMapping
    public Result<String> test2(@RequestBody @Valid M name) {
        return ResultSet.go("test2");
    }
}

